package com.um.psystem.service.mtService;

import com.um.psystem.model.vo.JsonResult;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @Auther: qy
 * @Date: 2021/1/9 - 14:03
 * @Description: 月度申请接口
 * @version: 1.0
 */
public interface IAssetsMonthlyService {
    List<Map<String,Object>> getMonCategoryList(Map map);
    List<Map<String,Object>> getMonCategoryInfo(Map map);
    List<Map<String,Object>> getMonApplyInfoList(Map map);
    List<Map<String,Object>> getStockinNumAndAppliedNum(Map map);

    @Transactional
    JsonResult<Integer> updateMonCategory(Map map);
    @Transactional
    JsonResult<Integer> update_monApplyInfo(Map map);
    @Transactional
    JsonResult<Integer> submitMonthlyApply(Map map);
    @Transactional
    JsonResult<Integer> checkMonthlyApply(Map map);
    @Transactional
    JsonResult<Integer> backMonthlyApply(Map map);
    @Transactional
    JsonResult<Integer> saveMonApply_null(Map map);
    @Transactional
    JsonResult<Integer> addMonCategory(Map map);
    @Transactional
    JsonResult<Integer> addmonAssetsInfo(Map map);
    @Transactional
    JsonResult<Integer> deleMonCategory(Integer id);
    @Transactional
    JsonResult<Integer> del_monApply(Map map);
    @Transactional
    JsonResult<Integer> importMonthlyApplyData(Map map);

    void exportMonthlyApplyData(HttpServletResponse response, @RequestParam Map map);
}
